# -*- coding: utf-8 -*-
# @Time    :2022/1/21 20:31
# @AUTHOR  :MORAN
# @Email   :moran@maqu.com
# @File    :celery_main.py
# @Software:PyCharm

import os
from celery import Celery


os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'promote.settings')

app = Celery('promote')  # 创建celery应用

app.config_from_object('celery_tasks.celery_config')  # 导入celery配置

app.autodiscover_tasks(['celery_tasks.email', ])  # 导入任务
